<!--菜单6：
建筑能耗统计中的
查看详细中的
汝阳市人民医院电量统计表格-->
<template>
    <div class="MonthWarn">
        <!--        存放筛选条件-->
        <div class="tools-bar">
            <el-button size="mini" class="btn" plain>导出</el-button>
        </div>
        <div class="bottom">
            <div class="bottom-top">
                <span>电量统计</span>
            </div>
            <el-table
                    :data="tableData"
                    :cell-style="{textAlign:'center',padding:'0'}"
                    style="width: 100%;flex: 1;"
                    :default-sort = "{prop: 'date', order: 'descending'}"
                    :header-cell-style="{backgroundColor:'#F5F8FF',textAlign:'center',padding:'0'}"
                    border
            >
                <el-table-column
                        prop="date"
                        label="采集时间"
                        sortable>
                </el-table-column>
                <el-table-column
                        prop="name"
                        label="参数名称"
                        sortable
                        style="text-align: center">
                </el-table-column>
                <el-table-column
                        prop="data"
                        label="读数"
                        sortable>
                </el-table-column>
            </el-table>
        </div>
    </div>

    <!--        存放数据-->

</template>

<script>
    export default {
        name: "MonthWarn",
        data(){
            return{
                num:3,
                avg:10.00,
                tableData: [{
                    date: '2021-01-17 12:00',
                    name: '2*变',
                    data: 6293989.60
                },{
                    date: '2021-01-17 12:00',
                    name: '2*变',
                    data: 6293989.60
                }, {
                    date: '2021-01-17 12:00',
                    name: '2*变',
                    data: 6293989.60
                }, {
                    date: '2021-01-17 12:00',
                    name: '2*变',
                    data: 6293989.60
                }, {
                    date: '2021-01-17 12:00',
                    name: '2*变',
                    data: 6293989.60
                }, {
                    date: '2021-01-17 12:00',
                    name: '2*变',
                    data: 6293989.60
                }, {
                    date: '2021-01-17 12:00',
                    name: '2*变',
                    data: 6293989.60
                }, {
                    date: '2021-01-17 12:00',
                    name: '2*变',
                    data: 6293989.60
                }, {
                    date: '2021-01-17 12:00',
                    name: '2*变',
                    data: 6293989.60
                }]
            }
        },
        methods:{
        }
    }
</script>

<style scoped>
    .MonthWarn{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .tools-bar {
        padding: 0.5em 1em;
    }
    .bottom{
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        border: 1px solid #DCDFE6;
        box-sizing: border-box;
    }
    .bottom-top{
        background-color: #F5F8FF;
        font-size: 14px;
        color: #669A77;
        height: 30px;
        line-height: 30px;
        border-bottom: 1px solid #DCDFE6;
    }
    .bottom-top span{
        margin-left: 10px;
    }
    .el-col{
        position: relative;
        top: 7px;
    }
    /*    日期*/
    .box-left{
        margin-left: 10px;
        font-size: 12px;

    }
    /*平均值比较*/
    .box-mid-left{
        margin-left: 10px;
        font-size: 12px;
    }
    .box-mid{
        margin-left: 20px;
        font-size: 12px;
    }
    /*    平均值的框*/
    .avg{
        width: 90px;
    }
    /*    百分比*/
    .percent{
        width: 100px;
    }
    /*    按钮*/
    .btn{
        width: 100px;
        height: 30px;
        background-color: #F1F5F8;
        margin-left: 30px;
        border-radius: 5px;
    }
</style>

<style>
.MonthWarn .el-table th {
    padding: 0 0;
    color: black;
    font-size: 12px;
    height: 10px!important;
    border-bottom: 1px solid #DCDFE6;
}
.MonthWarn .el-table__body tr,
.MonthWarn .el-table__body td {
    padding: 0 0;
    height: 10px;
    line-height: 30px;
}
</style>